<?php /* Smarty version Smarty-3.0.7, created on 2012-01-25 21:24:50
         compiled from "./view/action/spary/user_spary.tpl" */ ?>
<?php /*%%SmartyHeaderCode:192944f206512604405-40669855%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5e21d5f0f1cb0b55a9ac857ba2f6c7a5833d2e16' => 
    array (
      0 => './view/action/spary/user_spary.tpl',
      1 => 1327523088,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '192944f206512604405-40669855',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
  <div class='nag'><span>Centrum zarządzania sparingami - sparingi użytkownika</span></div>
  
   <br /> <b style='margin: 15px;'>Sparingi, które dodałeś:</b><br />
   
        <?php if (isset($_smarty_tpl->getVariable('rows_user',null,true,false)->value)){?>
         <table style='margin-left: 10px;'>
    		<tr>
        		<td width='150px'>Data:</td>
            	<td width='100px'>Godzina:</td>
        		<td width='150px'>Ip serwera:</td>
            	<td width='150px'>Gra:</td>
            	<td width='100px'></td>
        	</tr>
        	<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('rows_user')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
         	<tr>
         		<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_date'];?>
</td>
           		<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_time'];?>
</td>
            	<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_serwer_ip'];?>
</td>
           		<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_game_type'];?>
</td>
          	  	<td><a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/spary/edit/<?php echo $_smarty_tpl->tpl_vars['row']->value['spar_id'];?>
'>Edytuj</a> |<a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/spary/delete/<?php echo $_smarty_tpl->tpl_vars['row']->value['spar_id'];?>
'>Usuń</a></td>
         	</tr>
        	<?php }} ?>
        <?php }else{ ?>
        	<?php if (isset($_smarty_tpl->getVariable('actionMessage',null,true,false)->value)){?>
        		<?php echo $_smarty_tpl->getVariable('actionMessage')->value;?>

			<?php }?>
        <?php }?>
   </table>
   
   
   
   <br /> <b style='margin: 15px;'>Sparingi, do których dołączyłeś:</b><br />
    <?php if (isset($_smarty_tpl->getVariable('rows_user_2',null,true,false)->value)){?>
   <table style='margin-left: 10px;'>
    	<tr>
        	<td width='150px'>Data:</td>
            <td width='100px'>Godzina:</td>
        	<td width='150px'>Ip serwera:</td>
            <td width='150px'>Gra:</td>
            <td width='100px'></td>
        </tr>
        
        <?php  $_smarty_tpl->tpl_vars['row_2'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('rows_user_2')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row_2']->key => $_smarty_tpl->tpl_vars['row_2']->value){
?>
         <tr>
         	<td><?php echo $_smarty_tpl->tpl_vars['row_2']->value['spar_date'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row_2']->value['spar_time'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row_2']->value['spar_serwer_ip'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row_2']->value['spar_game_type'];?>
</td>
            <td></td>
         </tr>
        <?php }} ?>
        <?php }else{ ?>
        	<?php if (isset($_smarty_tpl->getVariable('actionMessage',null,true,false)->value)){?>
        		<?php echo $_smarty_tpl->getVariable('actionMessage')->value;?>

			<?php }?>
        <?php }?>
   </table>